# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py3-sphinxcontrib-phpdomain
pkgver=0.11.2
pkgrel=0
pkgdesc="Sphinx phpdomain extension"
url="https://pypi.org/project/sphinxcontrib-phpdomain"
arch="noarch"
license="BSD-2-Clause"
depends="py3-sphinx"
makedepends="
	py3-gpep517
	py3-setuptools
	py3-wheel
	"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/markstory/sphinxcontrib-phpdomain/archive/refs/tags/$pkgver.tar.gz"
builddir="$srcdir"/sphinxcontrib-phpdomain-$pkgver

replaces="py-sphinxcontrib-phpdomain" # for backwards compatibility
provides="py-sphinxcontrib-phpdomain=$pkgver-r$pkgrel" # for backwards compatibility

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/*.whl
}

sha512sums="
00b806a601b1921a2e5b1dbde466f9eb47c69ff7bee12cd65725e8e83edab4430778a9963500417e116cc4c9f0281eab9fb63bfeb8f4c7ac31cf3de5fcdbcd83  py3-sphinxcontrib-phpdomain-0.11.2.tar.gz
"
